package com.ftwj.demo.permission.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ftwj.demo.permission.entity.ResourceBean;
import com.ftwj.demo.permission.vo.RouterEntity;


public interface ResourceService extends IService<ResourceBean> {

	List<Map<String, Object>> getResourceTree(Integer pid, Integer type, Integer size);
	
	IPage<Map<String, Object>> page(IPage<ResourceBean> pageInfo, ResourceBean resource);

	List<ResourceBean> getListByRoleId(Integer roleId);

	List<Integer> getResouceIdListByRoleId(Integer id, Integer type);
	
	List<RouterEntity> getRouterByRoles(List<String> roles);



}
